<!DOCTYPE html>
<html>
<head lang="zh">
	<meta http-equiv="Content-Type" content="text/html ;charset=utf-8">
	<meta name="google" content="notranslate" />
	<meta http-equiv="X-UA-COMPATIBLE" content="IE=edge"/>
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
	<meta name="viewport" content="width=device-width,initial-scale=1.0"/>
	<meta name="csrf-token" content="{{ csrf_token() }}">
	<link rel="shortcut icon" type="image/x-icon" href="{{URL::asset('handan/images/logo-icon.png')}}" />
	<title>EAI交易圈</title>
	<link rel="stylesheet" href="{{URL::asset('/ucenter/css/bootstrap.min.css')}}">
	<link rel="stylesheet" href="{{ URL::asset('index/css/base.css') }}"/>
	<link rel="stylesheet" href="{{ URL::asset('admin/css/index.css') }}"/>
	<link href="{{URL::asset('/public_js/need/laydate.css')}}" rel="stylesheet" />
	<link href="{{URL::asset('/public_js/skins/molv/laydate.css')}}" rel="stylesheet" />
</head>
<body>
@include('admin.adminheader')
@include('admin.adminleft')
<div class="j_contentRight">
	<div class="j_screen">
		<div class="j_screenTop">
			<div class="j_screenOne" style="border-bottom: 1px dashed #c6c6c6;">
				<span>类型</span>
				<select name="" id="typeChange">
					<option value="0" @if($type == 0) selected @endif>全部</option>
					<option value="1" @if($type == 1) selected @endif>策略大师</option>
					<option value="2" @if($type == 2) selected @endif>明日之星</option>
				</select>
				<span>时间</span>
				<input class="laydate-icon ifInput" readonly="readonly" style="cursor: pointer;" id="OStartTime" name="OStartTime" @if($timestart)value="{{date("Y-m-d",$timestart)}}"@endif/>
				<span>-</span>
				<input class="laydate-icon ifInput" readonly="readonly" style="cursor: pointer;" id="OendTime" name="OStartTime"  value="{{date("Y-m-d",$timeend)}}"/>
				<span>总盈</span>
				<input type="number" placeholder="起始" oninput="if(value.length>5)value=value.slice(0,6)" id="totalStart" value="{{$finalpointstart}}"/>
				<span>-</span>
				<input type="number" placeholder="结束" oninput="if(value.length>5)value=value.slice(0,6)" id="totalEnd" value="{{$finalpointend}}"/>
				<span>单量</span>
				<input type="number" placeholder="起始" oninput="if(value.length>5)value=value.slice(0,3)" id="singleStart" class="ifInput" value="{{$orderstart}}"/>
				<span>-</span>
				<input type="number" placeholder="结束" oninput="if(value.length>5)value=value.slice(0,3)" id="singleEnd" class="ifInput" value="{{$orderend}}"/>
				<a href="javascript:;" class="j_ok" onclick="screenOk()">查询</a>
			</div>
			<div class="j_screenOne">
				<span >单量</span>
				<b class="j_marginleft @if($ordersort == 1) active @endif" onclick="orderSort(1,this)">由高到低</b>
				<b class="@if($ordersort == 2) active @endif" onclick="orderSort(2,this)">由低到高</b>
				<a href="javascript:;">
					<span style="margin-left: 45px;">总盈</span>
					<b class="j_marginleft @if($finalpointsort == 1) active @endif"  onclick="totalSort(1,this)">由高到低</b>
					<b  class="@if($finalpointsort == 2) active @endif" onclick="totalSort(2,this)">由低到高</b>
				</a>
			</div>
		</div>
	</div>
	<div class="j_screenContent" id="j_screenContent">
		<ul>
			<li>排名</li>
			<li>昵称</li>
			<li>总盈</li>
			<li>单量</li>
			<li>正在持仓</li>
			<li>单均</li>
			<li>胜率</li>
			<li>近一周喊单</li>
			<li>稳定指数</li>
			<li>风险比</li>
			<li>最大回撤</li>
			<li>最大涨幅</li>
		</ul>
		@if($result)
			@foreach($result as $k=>$v)
				<ul>
					<li>{{($result->currentPage()-1)*10+$k+1}}</li>
					<li>{{$v->username}}</li>
					<li>{{$v->final_point}}点</li>
					<li>{{$v->ordernum}}</li>
					<li>{{$v->chicang}}</li>
					<li>{{$v->single_final_point}}点</li>
					<li>{{$v->winrate}}%</li>
					<li>{{$v->weekordernum}}</li>
					<li>{{$v->wdzs}}</li>
					<li>{{$v->fengXianBi}}</li>
					<li>{{$v->huiche}}</li>
					<li>{{$v->zhangfu}}</li>
				</ul>
			@endforeach
		@endif
	</div>
	@if($result)
		<div class="j_screenPage">
			{{$result->appends(['type'=>$type,'timestart'=>$timestart,'timeend'=>$timeend,'finalpointstart'=>$finalpointstart,'finalpointend'=>$finalpointend,'orderstart'=>$orderstart,'orderend'=>$orderend,'ordersort'=>$ordersort,'finalpointsort'=>$finalpointsort])->links()}}
		</div>
	@endif
</div>
</body>
<script src="{{URL::asset('public_js/jquery-3.2.1.min.js')}}"></script>
<script src="{{URL::asset('public_js/layDate.js')}}"></script>
<script src="{{URL::asset('admin/js/index.js')}}"></script>
<script>
var dourl = "{{url('/myadmin/')}}";
var j_ordersort = "{{$ordersort}}";
var j_totalsort = "{{$finalpointsort}}";
</script>
</html>

